<template>
<div class="loading-wrap" v-show ="show">
  <div class="loading">
    <mu-circular-progress :size="40" color="green"></mu-circular-progress>
  </div>
</div>
</template>
<script>
export default {
  name: 'loading',
  computed: {
    show () {
      return this.$store.state.loading
    }
  }
}
</script>

<style lang="less">
.loading-wrap{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99;
  display: flex; 
  align-items: center; 
  justify-content: center;
  .loading{
    // background: #fff;
    margin: auto;
    border-radius: 10px;
    padding: 20px;
  }
}
</style>
